//
//  JSON+Extension.swift
//  HuaYun
//
//  Created by enghou on 2018/7/13.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

import Foundation
extension JSON{
    var contents: [String:JSON]?{
        get{
            if let code = self.dictionary?["code"]?.rawValue as? Int {
                if code == 1 {
                    NotificationCenter.default.post(name: NSNotification.Name("NeedLogin"), object: nil)
                }
            }
            return self.dictionary
        }
    }
    
}
